Perform a mouse click and drag operation.
MouseClickDrag ( "button", x1, y1, x2, y2 [, speed] )
Parameters
button | The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". |
x1, y1 | The x/y coords to start the drag operation from. |
x2, y2 | The x/y coords to end the drag operation at. |
speed | [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. |
Return Value
Success: | Returns 1. |
Failure: | Returns 0, the button is not in the list. |
Remarks
If the button is an empty string, the left button will be clicked.
Related
MouseClick, MouseGetPos, MouseMove, MouseCoordMode (Option), MouseClickDragDelay (Option)
Example
; Left click drag from 0,200 to 600, 700
MouseClickDrag("left", 0, 200, 600, 700)